package com.pansoft.openplanet.util;

import org.bitcoincashj.params.AbstractBitcoinNetParams;
import org.bitcoincashj.params.TestNet3Params;

/**
 * Bch钱包网络参数及接口
 * @author will
 */
public class BchNetParamUtil {
//    private static final String BASE_URL = EnvironmentVariable.getProperty("TalkChainUrl") + "/tcserver";
     private static final String BASE_URL = "http://chaintest.openserver.cn";

    //获取余额
    public static final String URL_BCH_GET_BALANCE = BASE_URL + "/bch/bchGetBalance?BchAddress=";
    //获取utxo
    public static final String URL_BCH_GET_UTXO = BASE_URL + "/bch/bchGetUtxo?BchAddress=";
    //广播交易
    public static final String URL_BCH_PUBLISH = BASE_URL + "/bch/publish";
    //交易记录
    public static final String URL_BCH_TX_HISTORY = BASE_URL + "/bch/getAddressTxs";
    //正式或测试网络
//    public static final String NET_TYPE = "formal";
    public static final String NET_TYPE = "test";
    public static AbstractBitcoinNetParams getBtcNetParams(){
        //正式或测试网络
//        return MainNetParams.get();
        return TestNet3Params.get();
    }
}
